import httpRequest from "@/http"
import { MyResponseType } from "@/bean/base/response"
import { MyLoginType } from "@/bean/base/login"

export const loginAPI = (params:Object) => {
    return httpRequest.post<MyResponseType<MyLoginType>>("/comLogin/web/login",params)
}

export const logoutApi = () => {
    return httpRequest.postNoParam<MyResponseType<object>>("/comLogin/web/logout");
}